export default {
    namespaced: true,
    state() {
        return {
            //用于用户点击某个商品后跳转到商品详情时存储该商品信息
            selectedSpu: {},
            //用于控制商品详情页用户下滑后, 浮动信息展示框是否显示
            showFloatInfoDiv:false,
        }
    },
    mutations: {
        setSelectedSpu(state,spu){
            state.selectedSpu = spu
            console.log('selectedSpu>>>',state.selectedSpu)
        },
        setShowFloatInfoDiv(state,show){
            state.showFloatInfoDiv = show
        }
    },
    actions: {
    },
    getters: {}
}
